You need to copy the library files to your sketchbook folder for the project to compile. Make sure you use Midikey.cpp from here as it has the required changes for the M-audio specific hardware.